package com.lingdian;


import java.util.Scanner;

public class LotteryOdds {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
//        你需要抽多少个数字
        System.out.println("how many numbers do you need to draw?");
        int k = in.nextInt();
//        你能抽到的最大数字是多少？
        System.out.println("What is the heighest number you can draw?");
        int n = in.nextInt();
        int lotteryOdds = 1;
        for (int i = 1; i < k; i++) {
            lotteryOdds = lotteryOdds * (n - i + 1) / i;
            System.out.println("your odds are 1 in " + lotteryOdds + ". Good Luck!");
        }


    }
}
